package net.entelijan.cobean.bind.impl;

import java.util.Collection;

final class CobeanSpringUtil {

    private static SpringBeanTreater beanTreater = new SpringBeanTreater();

    private CobeanSpringUtil() {
        super();
    }

    public static boolean isCglibProxyFromClass(Class<?> wrappedClass) {
        return beanTreater.isCglibProxyFromClass(wrappedClass);
    }

    public static boolean isDynamicProxyFromClass(Class<?> wrappedClass) {
        return beanTreater.isDynamicProxyFromClass(wrappedClass);
    }

    public static boolean isCglibProxy(Object model) {
        return beanTreater.isCglibProxy(model);
    }

    public static boolean isDynamicProxy(Object model) {
        return beanTreater.isDynamicProxy(model);
    }

    public static boolean isProxy(Class<?> clazz) {
        return beanTreater.isProxy(clazz);
    }

    public static Class<?> getOriginalClass(Class<?> clazz) {
        return beanTreater.getOriginalClass(clazz);
    }

    public static Collection<Object> getTarget(Collection<Object> coll) {
        return beanTreater.getTarget(coll);
    }

    public static boolean isWrapped(Object model) {
        return beanTreater.isWrapped(model);
    }

}
